<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title></title>
    <link rel="stylesheet" type="text/css" href="css/site.css">
    <link rel="stylesheet" type="text/css" href="css/redmond/jquery-ui-1.8.23.custom.css">
	<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"></script>
	<script type="text/javascript">
		$(function() {
	        //退出系统
	        $( "#loginout" ).click(function(){
	        	if (confirm('确定要退出吗？')) 
	        		window.top.location = "login.jsp";
	        });
	        
	         $( "#password" ).click(function(){
	        	window.top.main.location = "user/alter.jsp";
	        });
		});
	</script>
  </head>
  
  <body>
    <div id="banner">
    	<h1 class="logo">
			<a title="jQuery UI" href="/home"><span></span></a>
		</h1>
		<div id="navigation">
			<a style="cursor: pointer; margin-right: 20px">当前用户：${sessionScope.user.userName}</a>
			<c:if test="${sessionScope.user.power==1 }">
				<a style="cursor: pointer; margin-right: 20px">角色：管理员</a>
			</c:if>
			<c:if test="${sessionScope.user.power!=1 }">
				<a style="cursor: pointer; margin-right: 20px;">角色：游客</a>
			</c:if>
			<a style="cursor: pointer; margin-right: 20px;" id="password">修改密码</a>
			<a style="cursor: pointer; margin-right: 20px;" id="loginout">退出系统</a>
		</div>
    </div>
  </body>
</html>
